package com.cryptoneedle.center.source.entity;

import com.bubbles.engine.data.core.entity.BaseEntity;
import jakarta.persistence.*;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.annotations.Comment;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

/**
 * <p>description: 配置SSH </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-25
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(schema = "public", name = "config_ssh")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = false)
@EqualsAndHashCode(callSuper = false)
@Comment("配置SSH")
public class ConfigSsh extends BaseEntity {

    @Id
    @Column(length = 16)
    @Comment("主机")
    private String host;

    @Comment("端口")
    private Integer port;

    @Column(length = 64)
    @Comment("用户名")
    private String userName;

    @Column(length = 64)
    @Comment("密码")
    private String password;
}